package cn.tedu.medicalappointmentsystemk.dao.persist.repository;

import cn.tedu.medicalappointmentsystemk.pojo.bo.DepartmentSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.DepartmentPO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.DepartmentSelectDoctorVO;
import com.github.pagehelper.Page;

import java.util.List;

public interface DepartmentRepository {
    Integer addDepartment(DepartmentPO departmentPO);

    Integer selectByName(String newName);

    Integer update(DepartmentPO departmentPO);

    DepartmentPO selectById(Long id);

    List<DepartmentPO> select();

    Integer deleteById(Long id);

    List<DepartmentSelectDoctorVO> selectDoctorByDepartmentId(Long id);

    List<DepartmentPO> select(Long id);

    Page<DepartmentSelectBO> selectDepartment();

    Page<DepartmentSelectBO> searchLastWeek();

    Page<DepartmentSelectBO> searchLastMonth();

    Page<DepartmentSelectBO> searchToday();

    List<DepartmentSelectBO> departmentSelectByName(String name);
}
